package com.nacos.listener;

import java.util.function.Consumer;

public interface ConfigListener {

    /**
     * 添加监听
     *
     * @param key 监听的配置id
     * @param consumer 监听回调处理
     * @throws Exception 可能抛出的异常
     */
    void addListener(String key, Consumer<String> consumer) throws Exception;
}